#pragma once
#include "stdafx.h"

using namespace boost::chrono;

class Timer : public Component
{
public:
	typedef boost::shared_ptr<Timer> sPtr;

	Timer();
	~Timer();
	
	void AddedToObject();
	system_clock::time_point::duration GetMillisecondsElapsed();
	int GetFPS();
	int GetIncrTime();
	void GetIncrTime(const Message& msg);
	void Update();
private:
	system_clock::time_point m_lastTime;
	system_clock::time_point m_curTime;
	int m_fps;
};